<!--
  @author wangxiaokun
  @date 2021-03-15 18:25:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>派单快照</title>
    <th:block th:replace="common/common :: jscss"/>
</head>
<body>
<div class="layui-fluid new-order-page">
    <div class="layui-card" style="padding-top:10px;">
        <div class="layui-form-item">
            <label class="layui-form-label">工程师：</label>
            <div class="layui-input-inline">
                <input type="hidden" name="masterId">
                <input class="layui-input" type="text" id="masterId" value="" placeholder="输入师傅姓名或电话">
            </div>
            <div class="layui-inline" style="padding-top: 7px">
                <th:block th:if="${distributeSnapshotVO.distributeRuleName != null}">
                    当前派单信息：<span th:text="${distributeSnapshotVO.distributeWayName}"></span>-自动派单-<span th:text="${distributeSnapshotVO.distributeRuleName}"></span>
                </th:block>
                <th:block th:if="${distributeSnapshotVO.distributeRuleName == null}">
                    未找到满足条件工程师
                </th:block>
            </div>
        </div>

        <div class="layui-form-item" id="tableView" style="padding:10px;">
            <table id="detailMasterTable" lay-filter="detailMasterTable"></table>
        </div>
    </div>
</div>

<script th:inline="javascript">
    var json = {
        masterList: [[${distributeSnapshotVO.masterList}]],
        nonDistributeMasterList: [[${distributeSnapshotVO.nonDistributeMasterList}]],
        distributeRule: [[${distributeSnapshotVO.distributeRule}]],
        autoDistributeMaster: [[${distributeSnapshotVO.autoDistributeMaster}]],
        distributeRuleName: [[${distributeSnapshotVO.distributeRuleName}]],
        distributeWay: [[${distributeSnapshotVO.distributeWay}]]
    };

    layui.config({
        base: "/static/js/module/",
        version: 20221013001
    }).extend({
        oms_work_modify_distribute_snapshot: "work/modify/distribute/zmn.oms.work.modify.distribute.distributeSnapshot"
    }).use(['index', 'oms_work_modify_distribute_snapshot']);
</script>

</body>
</html>